"use strict";
cc._RF.push(module, '161e3a/0RtAKYzH/UlGbl5y', 'gameStart');
// script/gameStart.js

"use strict";

// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
  "extends": cc.Component,
  properties: {},
  // LIFE-CYCLE CALLBACKS:
  onLoad: function onLoad() {},
  start: function start() {//   if (window.wx) {//确定是在微信真机环境下
    //     let sysInfo = wx.getSystemInfoSync();
    //     //获取微信界面大小
    //     let width = sysInfo.screenWidth;
    //     let height = sysInfo.screenHeight;
    //     let button = wx.createUserInfoButton({
    //         type: 'text',
    //         text: '',
    //         style: {
    //             left: 0,
    //             top: 0,
    //             width: width,
    //             height: height,
    //             backgroundColor: '#00000000',//最后两位为透明度
    //             color: '#ffffff',
    //             fontSize: 20,
    //             textAlign: "center",
    //             lineHeight: height,
    //         }
    //     });
    //     button.onTap((res) => {
    //         // 此处可以获取到用户信息
    //         console.log(res.userInfo);
    //         let userInfo = res.userInfo;
    //         let icon = cc.find("Canvas/Bg/userIcon").getComponent(cc.Sprite);
    //         cc.loader.load({url: userInfo.avatarUrl,type: 'png'}, (err, texture) => {
    //             icon.spriteFrame = new cc.SpriteFrame(texture);
    //         });
    //     });
    //     wx.getUserInfo({
    //         success(res) {
    //           // 此处可以获取到用户信息
    //           console.log('此处可以获取到用户信息');
    //         }
    //       })
    // } 
  },
  click_TaoNiu: function click_TaoNiu(event, customEventData) {
    cc.log("点击了牛头");
    cc.director.loadScene("game");
    this.node.removeFromParent();
    this.node.destroy();
  } // update (dt) {},

});

cc._RF.pop();